<?php
class ControllerModuleAccountnav extends Controller {
	protected function index() {
		$this->language->load('module/accountnav');
		
		$this->data['heading_title'] = $this->language->get('heading_title');
		
		$this->data['text_account_edit'] = $this->language->get('text_account_edit');
		$this->data['text_change_password'] = $this->language->get('text_change_password');
		$this->data['text_my_orders'] = $this->language->get('text_my_orders');
		$this->data['text_call_for_paper'] = $this->language->get('text_call_for_paper');
		$this->data['text_logout'] = $this->language->get('text_logout');
		
		$this->data['logged'] = $this->user->isLogged();
		$this->data['edit'] = $this->url->link('account/edit','','SSL');
		$this->data['password'] = $this->url->link('account/password','','SSL');
		$this->data['order'] = $this->url->link('account/order','','SSL');
		$this->data['paper'] = $this->url->link('paper/paper','','SSL');
		$this->data['logout'] = $this->url->link('account/logout','','SSL');
		
		if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/module/accountnav.tpl')) {
			$this->template = $this->config->get('config_template') . '/template/module/accountnav.tpl';
		} else {
			$this->template = 'default/template/module/accountnav.tpl';
		}
		
		$this->render();
	}
	
}